home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / pdcurs21.zip / PORTABLE.ZIP / META.C < prev    next >
Text File  |  1992-11-21  |  1KB  |  52 lines

  1. #define        CURSES_LIBRARY  1
  2. #include <curses.h>
  3. #undef meta
  4.  
  5. #ifndef        NDEBUG
  6. char *rcsid_meta = "$Header: c:/curses/portable/RCS/meta.c%v 2.0 1992/11/15 03:29:00 MH Rel $";
  7. #endif
  8.  
  9.  
  10.  
  11.  
  12. /*man-start*********************************************************************
  13.  
  14.   meta()       - Force the number of significant bits on input.
  15.  
  16.   Ultrix 4.1 Description:
  17.        This function forces the user's terminal to return 7 or 8
  18.        significant bits on input.  To force 8 bits to be returned,
  19.        invoke meta() with bf as TRUE.  To force 7 bits to be returned,
  20.        invoke meta() with bf as FALSE.
  21.  
  22.        The window argument is always ignored, but it must still be a
  23.        valid window to avoid compiler errors.
  24.  
  25.   PDCurses Description:
  26.        This function is provided for portability.  By default, 8 bits
  27.        are returned.
  28.  
  29.        FYI:  The Ultrix DOC needs confirmation...
  30.  
  31.   PDCurses Return Value:
  32.        The meta() function returns OK.
  33.  
  34.   PDCurses Errors:
  35.        No errors are defined for this function.
  36.  
  37.   Portability:
  38.        PDCurses        int meta( WINDOW* win, bool bf );
  39.        BSD Curses      int meta( WINDOW* win, bool bf );
  40.        SYS V Curses    int meta( WINDOW* win, bool bf );
  41.  
  42. **man-end**********************************************************************/
  43.  
  44. int    meta( WINDOW *win, bool bf )
  45. {
  46. #ifdef TC
  47. # pragma argsused;
  48. #endif
  49.        _cursvar.raw_inp = bf;
  50.        return( OK );
  51. }
  52.